<?PHP
require_once("./top-config.php");
?>
<?PHP
if(isset($_POST['Submit']))
{
   if($fgmembersite->Quick_Join_Form_Handler())
   {
        $fgmembersite->RedirectToURL("list-groups.php");
		$fgmembersite->RedirectToURL($fgmembersite->GetSelfScript());   
   }
   
}

?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title><?PHP $fgmembersite->GetString('Join group','Tham gia nhóm')?></title>
<?PHP
require_once("./pre-config.php");
?>
</head> 
<body>
<?PHP
require_once("./main-nav.php");
?>
<div class="container">
    <div class="row">
<?PHP
    print '<div class="col-md-'.$_SESSION['main-div-left'].'">';
	print '</div>';
    print '<div class="col-md-'.$_SESSION['main-div-center'].'">';
?>
			<form id='join-group' action='<?php echo $fgmembersite->GetSelfScript(); ?>' method='post' accept-charset='UTF-8'>
				<div id="notice-board">
					<?PHP $fgmembersite->GetErrorMessage()?>				
				</div>
				<div class="form-group">
					<h4 class="text-primary"><?PHP $fgmembersite->GetString('Join group:','Tham gia nhóm:')?></h4>
					<label for="inputGroup-Name"><?PHP $fgmembersite->GetString('Group name*','Tên nhóm*')?></label>
					<input type="text" class="form-control" name="group_name" id="group_name" value='<?php echo $fgmembersite->SafeDisplay('group_name'); ?>' maxlength="32"/>
				</div>
				<button type="submit"  name='Submit' class="btn btn-success center-block"><?PHP $fgmembersite->GetString('Join','Tham gia')?></button>
			</form>
		</div>
<?PHP
    print '<div class="col-md-'.$_SESSION['main-div-right'].'">';
	print '</div>';
?>	
    </div>
</div>
<?PHP
require_once("./footer.php");
?>
</body>
</html>                                		